package com.wtwd.campus.h5_manager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2022-03-14
 */
@ApiModel(value = "DeviceLog对象", description = "")
public class DeviceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备日志表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "1平台，2设备")
    private Integer sendUser;

    @ApiModelProperty(value = "imei")
    private String imei;

    @ApiModelProperty(value = "消息类型")
    private String bigType;

    @ApiModelProperty(value = "指令类型")
    private String type;

    @ApiModelProperty(value = "指令")
    private String cmd;

    @ApiModelProperty(value = "发送时间")
    private Long sendTime;

    @ApiModelProperty(value = "发送状态", name = "1.发送成功,2.发送失败")
    private Integer state;

    @ApiModelProperty(value = "是否缓存", name = "1：缓存,2未缓存")
    private Integer cache;

    @ApiModelProperty(value = "指令序列号")
    private String commandNumber;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getSendUser() {
        return sendUser;
    }

    public void setSendUser(Integer sendUser) {
        this.sendUser = sendUser;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getBigType() {
        return bigType;
    }

    public void setBigType(String bigType) {
        this.bigType = bigType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public Long getSendTime() {
        return sendTime;
    }

    public void setSendTime(Long sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getCache() {
        return cache;
    }

    public void setCache(Integer cache) {
        this.cache = cache;
    }

    public String getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(String commandNumber) {
        this.commandNumber = commandNumber;
    }

    @Override
    public String toString() {
        return "DeviceLog{" +
                "id=" + id +
                ", sendUser=" + sendUser +
                ", imei='" + imei + '\'' +
                ", bigType='" + bigType + '\'' +
                ", type='" + type + '\'' +
                ", cmd='" + cmd + '\'' +
                ", sendTime=" + sendTime +
                ", state=" + state +
                ", cache=" + cache +
                ", commandNumber='" + commandNumber + '\'' +
                '}';
    }
}
